package com.mzkj.wanjulaile.mobile.api.modules.toy.service;

import com.mzkj.wanjulaile.mobile.api.modules.toy.entity.Image;
import com.mzkj.wanjulaile.mobile.api.modules.toy.mapper.ImageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional(readOnly = true)
public class ImageServiceImpl implements ImageService{
	@Autowired
	private ImageMapper imageMapper;


	public  List<Image> getListByToyId(Image image){
		return imageMapper.getListByToyId(image);
	}

	public Image getVedioByToyId(Image image){
		return imageMapper.getVedioByToyId(image);
	}

	public List<Image> getInstructions(Image image){
		return imageMapper.getInstructions(image);
	}
}